﻿﻿{extends file="layout.tpl"}
{block name="title"}Sign in{/block}
{block name="script"} $(document).ready(function () {
    

    $( "#frmSignin" ).validate({
    rules: {
        email:{
            required: true,
            email: true
        },
        password: {
            required: true
            }

         },
        messages: {

    email:{
    required: "##EM_EMAIL_IS_REQUIRED##",
    email: "##EM_EMAIL_INCORRECT_FORMAT##"
    },
    password: {

    required: "##EM_PASSWORD_IS_REQUIRED##"
    }	

    }
    });
    });{/block}
    {block name="content"}
        <div class="grid_7">
            <div class="box round first center">
                <h2>##LB_INTRODUCTION##
                </h2>
                <p>
               ##PARAGRAPH_INTRODUCTION##
               </p>
            </div>
        </div>
        <div class="grid_5">
            <div class="box round first center">
                <h2>
                    Login</h2>
                <div class="block ">
                    <div class="message error" style="display:{$is_display_error|default:'none'};"> {$error_message|default:''}<br>{validate id="required_email" message="##EM_EMAIL_IS_REQUIRED##"}
                        <br/>{validate id="format_email" message="##EM_EMAIL_INCORRECT_FORMAT##"}
                        <br/>{validate id="required_password" message="##EM_PASSWORD_IS_REQUIRED##"}

                        </div>
                    <form id="frmSignin" name="frmSignin" action="signin.php" method="post">
                        <table class="form">
                            <tr>
                                <td class="col1">
                                    <label>
                                        ##LB_EMAIL## :</label>
                                </td>
                                <td class="col2">

                                    <input type="text" id="email" name="email" value="{$email|default:''}"/>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <label>
                                        ##LB_PASSWORD## :</label>
                                </td>
                                <td>

                                    <input type="password" id="password" name="password"/>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <label>
                                        ##LB_KEEPSESSION##</label>
                                </td>
                                <td>
                                    <input type="checkbox" name="keep_session" id="keep_session"/>

                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <input type="submit" class="btn btn-blue" value="##LB_SIGNIN##" name="submit"/>
                                    <!--<input type="hidden" name="submit" id="submit" />-->
                                    <p ><a href="resetpassword.php">##LB_RESETPASSWORD## </a></p>
                                    <p ><a href="register.php">##LB_REGISTER_NEW## </a></p>
                                </td>
                            </tr>                   
                        </table>
                    </form>
                </div>
            </div>
        </div>
        </div>                                <div class="clear"></div>
    {/block}
